<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" xmlns:th="http://www.thymeleaf.org/">
    <title>Title</title>
</head>
<script>
    function add(){
        alert("添加成功");
    }
</script>
<body>
<table border="1">
    <tr>
        <td>工号</td>
        <td>姓名</td>
        <td>操作</td>
    </tr>
    <tr th:each="concat:${tc}">
        <td th:text="${concat.tno}"></td>
        <td th:text="${concat.tname}"></td>
        <td>
            <a th:href="@{'/teacher/getTeacher/'+${concat.tno}}">修改</a>
            <a th:href="@{'/teacher/deleteTeacher/'+${concat.tno}}">删除</a></td>
    </tr>
</table>
<div>
    <title>新增老师</title>
    <form action="/teacher/addTeacher" method="post">
        姓名: <input type="text" th:value="${tname}" name="tname"><br>
        <button onclick="add()" type="submit">添加老师</button>
    </form>
</div>
</body>
</html>